package game.ui.controls
{
	import flash.display.*;
	import flash.geom.*;
	import flash.text.*;
	import game.ui.core.*;
	//import game.ui.utils.*;
	
	public class RxRectangularButton extends RxButtonBase
	{
		private var m_color:uint = 7833879;
		private var m_overlay:Shape;
		private var m_body:RxScalableBitmap;
		private var m_frame:RxScalableBitmap;
		
		public function RxRectangularButton(param1:String = "", param2:uint = 8097050, param3:String = null, param4:String = null)
		{
			var _loc_5:* = RxFontLibrary.GenerateTextFormatForStyle(RxFontStyleConstants.BODY_MEDIUM_BOLD, 16777215, TextFormatAlign.CENTER);
			super(param1, param3, _loc_5);
			m_width = 96;
			m_height = 33;
			this.m_frame = new RxScalableBitmap("ui/skills/softgap_s9.png", new Rectangle(9, 9, 91, 45));
			this.m_frame.mouseChildren = false;
			this.m_frame.mouseEnabled = false;
			addChild(this.m_frame);
			this.m_body = new RxScalableBitmap("ui/btn_standard/btn_standard_s9.png", new Rectangle(9, 11, 14, 14));
			this.m_body.mouseChildren = false;
			this.m_body.mouseEnabled = false;
			addChild(this.m_body);
			this.m_overlay = new Shape();
			this.m_overlay.blendMode = BlendMode.OVERLAY;
			addChild(this.m_overlay);
			setChildIndex(m_labelField, (numChildren - 1));
			this.SetBackgroundColor(param2);
			InvalidateSize();
		}
		
		public function SetBackgroundColor(param1:uint) : void
		{
			this.m_color = param1;
			InvalidateDisplayState();
		}
	}
}